﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class KyBUO:IBUO<tlb_Ky>
    {
        CSDLQLDiemHSC3DataContext context = new CSDLQLDiemHSC3DataContext();
        public bool Insert(tlb_Ky obj)
        {
            throw new NotImplementedException();
        }

        public bool Delete(string id)
        {
            throw new NotImplementedException();
        }

        public bool Delete(tlb_Ky obj)
        {
            throw new NotImplementedException();
        }

        public List<tlb_Ky> GetAll()
        {
            return context.tlb_Kies.ToList<tlb_Ky>();
        }

        public tlb_Ky GetSingle(string id)
        {
            throw new NotImplementedException();
        }

        public bool Update(string id, tlb_Ky obj)
        {
            throw new NotImplementedException();
        }

        public IQueryable getKyByIdNamHoc(String idNam)
        {
            var list = context.tlb_Kies.Where(n => n.id_NamHoc.Trim().Equals(idNam.Trim()));
            return list;
        }
    }
}
